home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000386_bonomi@host122.r-bonomi.com_Sun Sep 5 15:22:54 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
3KB
Path: newsmaster.cc.columbia.edu!panix!news.linkpendium.com!news.linkpendium.com!news.moat.net!feeder2.on.meganewsservers.com!meganewsservers.com!reader1.on.meganewsservers.com!reader1.on.meganewsservers.com!not-for-mail
ath: nntpswitch.com
Newsgroups: comp.protocols.kermit.misc
References: <ch4m71$koi$2@blue.rahul.net> <slrncjbtvl.iqr.fdc@sesame.cc.columbia.edu>
Organization: Robert Bonomi Consulting
Subject: Re: GPS NMEA time reader
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
From: bonomi@host122.r-bonomi.com (Robert Bonomi)
Originator: bonomi@host122.r-bonomi.com (Robert Bonomi)
Message-ID: <78889$413b33a0$44a75e7a$24367@msgid.meganewsservers.com>
Date: Sun, 05 Sep 2004 15:41:20 +0000
Lines: 49
NNTP-Posting-Host: 216.251.47.166
X-Trace: 1094398880 reader1.on.meganewsservers.com 1314 216.251.47.166:41147
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15157
In article <slrncjbtvl.iqr.fdc@sesame.cc.columbia.edu>,
Frank da Cruz <fdc@columbia.edu> wrote:
>On 2004-09-01, dold@GPSXNMEAXt.usenet.us.com <dold@GPSXNMEAXt.usenet.us.com>
>wrote:
>: I have a commodity GPS (Garmin eTrex)
>: This produces NMEA strings at 4800 baud that I can read easily with
>: Kermit95.
>:
>: A string that starts with $GPRMC contains the date and time in GMT.
>: The strings appear every few seconds, with a granularity of +/-2 seconds.
>:
>: What I want to do is read these with Kermit95 and use them to set the time
>: and date on a Windows PC. The fact that it is GMT is a little bit of a
>: problem, and I thought someone else might already have done the work for
>: me.
>:
>: If the script also worked on MSDOS and Unix, that would be great. On Unix,
>: I think the GMT offset is not a big deal, but I don't know what to do on
>: Windows/DOS.
>:
>C-Kermit and K95 include date/time functions that can handle GMT/localtime
>conversion:
>
> http://www.columbia.edu/kermit/ckermit80.html#x8.13
>
>MS-DOS Kermit, no. DOS itself (of course) has no knowledge of timezones.
>
>: This is from 010904 September 1, 2004, at 13:40:58 GMT
>: Once satellite lock is found, the position appears
>: $GPRMC,134058,A,3850.1234,N,12230.5678,W,0.0,71.4,010904,15.0,E,A*0D
>: ------ ------
>: Before satellite lock is found, there is no position, and no time.
>: The ",V," indicates that the fix is no good.
>: $GPRMC,,V,,,,,,,010904,15.0,E,N*00
>:
>You didn't say how to decode these, but if a time is in there, Kermit
>string and date/time functions can deal with it. As to actually setting
>the system time, you'll need to invoke an external program (RUN or RUN START)
>with appropriate command line options and privileges.
The 'decoding' is obvious. <grin>
The 2nd field is HHMMSS, the 11th field is DDMMYY
(note: decoding derived from his supplied data, with the plain-text
explanation line that precedes it, and his underlining of
fields 2 and 11.)